package com.lsh.service;

import com.lsh.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 刘书豪
 * @since 2022-07-22
 */
public interface IUserService extends IService<User> {
    Map<String, Object> register(User user);
    int activation(int userId, String code);
    User selectByName(String username);
    Map<String,Object> login(String username,String password,int dateTime);

    Map<String,Object> updatePassword(String oldPassword,String newPassword1,String newPassword2);
}
